package com.yuncheng.spcyApi.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuncheng.spcyApi.bo.QyYlgyssjYjxxParamBo;
import com.yuncheng.spcyApi.bo.WlGyssjParamBo;
import com.yuncheng.spcyApi.bo.WlkcParamBo;
import com.yuncheng.spcyApi.dto.WlStatListDto;
import com.yuncheng.spcyApi.dto.WlphYjDto;
import com.yuncheng.spcyApi.entity.SpcyQyWlml;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuncheng.spcyApi.entity.SpcyQyYlgyssj;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 审评查验-企业物料目录
 * @Author: yuncheng
 * @Date: 2023-11-21
 * @Version: V1.0
 */
public interface SpcyQyWlmlMapper extends BaseMapper<SpcyQyWlml> {

    // 获取物料与供应商审计列表
    List<WlGyssjParamBo> findWlAndGyssjList(@Param("fwlsjid")String fwlsjid);

    // 获取对应物料目录的供应商审计
    List<QyYlgyssjYjxxParamBo> findWlGyssjList(@Param("fwlmlid")String fwlmlid,@Param("bean")QyYlgyssjYjxxParamBo bean);

    // 获取物料库存列表
    Page<WlkcParamBo> findWlkcListPage(Page<WlkcParamBo> page, @Param("bean") WlkcParamBo wlkcParamBo);

    // 查看库存
    WlkcParamBo findWlkcById(@Param("id") String id);

    // 物料平衡预警信息
    List<WlphYjDto> findWlphYjList(@Param("bean") WlphYjDto wlphYjDto);

    // 物料库存
    Page<WlkcParamBo> findAllWlkcList(Page<WlkcParamBo> page,@Param("bean") WlkcParamBo wlkcParamBo);

    // 物料统计
    Page<WlStatListDto> findWlStatList(Page<WlStatListDto> page,@Param("bean") WlStatListDto wlkcParamBo);
}
